package com.ls.fw.web.file.bean;

import java.io.Serializable;

/**
 * @author Defender 2014年2月21日 下午9:30:27
 */
public class FileInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String saveRelativeDir = "";
	private String saveName = "";
	private String srcName = "";
	private boolean existSameName = false;
	private long size = 0L;
	private String fileType = "";
	private String contentType = "";
	private String sizeStr = "0B";
	private String url = "";
	private String removeUrl = "";
	private String deleteUrl = "";
	private String relativePath = "";

	public String getSaveName() {
		return saveName;
	}

	public void setSaveName(String saveName) {
		this.saveName = saveName;
	}

	public String getSrcName() {
		return srcName;
	}

	public void setSrcName(String srcName) {
		this.srcName = srcName;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getSizeStr() {
		return sizeStr;
	}

	public void setSizeStr(String sizeStr) {
		this.sizeStr = sizeStr;
	}

	public String getSaveRelativeDir() {
		return saveRelativeDir;
	}

	public void setSaveRelativeDir(String saveRelativeDir) {
		this.saveRelativeDir = saveRelativeDir;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isExistSameName() {
		return existSameName;
	}

	public void setExistSameName(boolean existSameName) {
		this.existSameName = existSameName;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("UploadFileInfo [saveRelativeDir=");
		builder.append(this.saveRelativeDir);
		builder.append(", saveName=");
		builder.append(this.saveName);
		builder.append(", srcName=");
		builder.append(this.srcName);
		builder.append(", existSameName=");
		builder.append(this.existSameName);
		builder.append(", size=");
		builder.append(this.size);
		builder.append(", fileType=");
		builder.append(this.fileType);
		builder.append(", contentType=");
		builder.append(this.contentType);
		builder.append(", sizeStr=");
		builder.append(this.sizeStr);
		builder.append(", url=");
		builder.append(this.url);
		builder.append(", relativeUrl=");
		builder.append(this.relativePath);
		builder.append("]");
		return builder.toString();
	}

	public String getRemoveUrl() {
		return this.removeUrl;
	}

	public void setRemoveUrl(String removeUrl) {
		this.removeUrl = removeUrl;
	}

	public String getDeleteUrl() {
		return this.deleteUrl;
	}

	public void setDeleteUrl(String deleteUrl) {
		this.deleteUrl = deleteUrl;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
